import CommonAction from "../../../../../actions/common";

export default class HeaderAction extends CommonAction {
    constructor(comp) {
        super();
        this.comp = comp;
        this.dispatchType = 'staffCom/getRegInfo'; //查询数据用到
    }

    getPostData = ()=>{
        let {state, props:{staffCom}} = this.comp;
        let {searchVal, pageInfo} = state;
        let {pk_org=null, pk_psncl=null} = staffCom;
        return {
            pageIndex: pageInfo.pageIndex,//	页码	number
            pageSize: pageInfo.pageSize,//	一页条数	number
            pk_org, //	组织	string	如果是从统计值穿透过来的,为统计值对应的pk_org,即部门主键
            pk_psncl, //	人员类别	string
            qryStr: searchVal,//	模糊查询串	string
        }
    };

    clear = () => {
        console.log('没有清空函数');
    };
}